﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bzure.Common.Core;

namespace Bzure.Apps.Security.ViewModels
{
    [EnumStringsAttribute(typeof(NotificationType), "警告", "消息", "成功", "错误", EnumName = "通知类型")]
    [Flags]
    public enum NotificationType
    {
        Attention = 1,
        Information = 2,
        Success = 4,
        Error = 8
    }
    public static class NotificationData
    {
        public const string YES = "&YES&";
        public const string NO = "&NO&";
    }
    public class NotificationViewModel : IPageViewModel
    {
        public NotificationViewModel()
        {
            Content = string.Empty;
            Data = NotificationData.NO;
            NotificationType = ViewModels.NotificationType.Information;
        }
        public string Content { get; set; }
        public string Data { get; set; }
        public NotificationType NotificationType { get; set; }
        public MasterViewModel MasterViewModel { get { return default(MasterViewModel); } }
    }
}
